{include file="header.php"}

<h2>{$title}</h2>

<form action="{$site_url}?controller=blog&action=update" method="post">
<table>
	<tr>
		<td>
			<label for="title">Title</label>
		</td>
		<td>
			<input type="text" name="title" id="title" value="{$blog.title}" />
		</td>
	</tr>
	
	
	<tr>
		<td>
			<label for="content">Content</label>
		</td>
		<td>
			<textarea name="content" id="content">{$blog.content}</textarea>
		</td>
	</tr>
	
	<tr>
		<td>
			<label for="published">Published</label>
		</td>
		<td>
			<select name="published" id="published">
				
				{if $blog.published == 1}
				<option value="1" selected="selected">Yes</option>
				<option value="0">No</option>
				{else}
				<option value="1">Yes</option>
				<option value="0" selected="selected">No</option>
				{/if}
			</select>
		</td>
		
	</tr>
	
	<tr>
		<td></td>
		<td>
			<input type="hidden" name="id" id="id" value="{$blog.id}" />
			<input type="submit" name="submit" id="submit" value="Update My Post" />
		</td>
	</tr>
	
</table>
</form>

{include file="footer.php"}